#ifndef uart_h
#define uart_h

////////////////////////////////////////////////////
//
//    UART MODULE
//
////////////////////////////////////////////////////
 

//Definitions
#define BAUDRATE 19200
#define RXIE 0b00100000
#define TXIE 0b00010000

// unsigned short usartMessage;

//Prototypes
void Uart_Rx_IE();
void Uart_RX_ID();
void Uart_Tx_IE();
void Uart_RX_ID();

//-----------C-------------//
void Uart_Rx_IE()
{
      PIE1 |= RXIE; //Enables AUSART Receive Interrupt
}

void Uart_Rx_ID()
{
      PIE1 &= ~RXIE; //Disables AUSART Receive Interrupt
}
void Uart_Tx_IE()
{
      PIE1 |= TXIE; //Enables AUSART Transmit Interrupt
}

void Uart_Tx_ID()
{
      PIE1 &= ~TXIE; //Disables AUSART Transmit Interrupt
}


#endif